package org.itsky.openfeign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author sky
 * @Site cmtianxie163.com 2020/4/9 13:52
 */

@RestController
public class HelloController {
    @Autowired
    private HelloService helloService;

    @GetMapping("hello")
    public String hello(){
        String hello = helloService.hello();
        return hello;
    }
}
